import edu.indiana.cs.b534.torrent.context.TorrentContext;
import edu.indiana.cs.b534.torrent.impl.TorrentManager;

import java.io.FileInputStream;
import java.util.Properties;


public class Seed {

    /**
     * @param args
     */
    public static void main(String[] args) {
        try {
        	//"resources/free-culture-seed.properties"
            Properties p = new Properties();
            FileInputStream in = new FileInputStream(args[0]);
            //FileInputStream in = new FileInputStream("resources/mov-seed.properties");
            p.load(in);
            in.close();

            TorrentManager manager = new TorrentManager(new TorrentContext(p));
            manager.run();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

}
